package com.pond.pond.service.impl;

import java.util.List;
import com.pond.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.pond.pond.mapper.PondActivityNoticeMapper;
import com.pond.pond.domain.PondActivityNotice;
import com.pond.pond.service.IPondActivityNoticeService;

/**
 * 钓场活动通知Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-12
 */
@Service
public class PondActivityNoticeServiceImpl implements IPondActivityNoticeService 
{
    @Autowired
    private PondActivityNoticeMapper pondActivityNoticeMapper;

    /**
     * 查询钓场活动通知
     * 
     * @param id 钓场活动通知主键
     * @return 钓场活动通知
     */
    @Override
    public PondActivityNotice selectPondActivityNoticeById(Long id)
    {
        return pondActivityNoticeMapper.selectPondActivityNoticeById(id);
    }

    /**
     * 查询钓场活动通知列表
     * 
     * @param pondActivityNotice 钓场活动通知
     * @return 钓场活动通知
     */
    @Override
    public List<PondActivityNotice> selectPondActivityNoticeList(PondActivityNotice pondActivityNotice)
    {
        return pondActivityNoticeMapper.selectPondActivityNoticeList(pondActivityNotice);
    }

    /**
     * 新增钓场活动通知
     * 
     * @param pondActivityNotice 钓场活动通知
     * @return 结果
     */
    @Override
    public int insertPondActivityNotice(PondActivityNotice pondActivityNotice)
    {
        pondActivityNotice.setCreateTime(DateUtils.getNowDate());
        return pondActivityNoticeMapper.insertPondActivityNotice(pondActivityNotice);
    }

    /**
     * 修改钓场活动通知
     * 
     * @param pondActivityNotice 钓场活动通知
     * @return 结果
     */
    @Override
    public int updatePondActivityNotice(PondActivityNotice pondActivityNotice)
    {
        pondActivityNotice.setUpdateTime(DateUtils.getNowDate());
        return pondActivityNoticeMapper.updatePondActivityNotice(pondActivityNotice);
    }

    /**
     * 批量删除钓场活动通知
     * 
     * @param ids 需要删除的钓场活动通知主键
     * @return 结果
     */
    @Override
    public int deletePondActivityNoticeByIds(Long[] ids)
    {
        return pondActivityNoticeMapper.deletePondActivityNoticeByIds(ids);
    }

    /**
     * 删除钓场活动通知信息
     * 
     * @param id 钓场活动通知主键
     * @return 结果
     */
    @Override
    public int deletePondActivityNoticeById(Long id)
    {
        return pondActivityNoticeMapper.deletePondActivityNoticeById(id);
    }
}
